package com.realworld.mapper;

import com.realworld.model.dto.UserInfoReq;
import com.realworld.model.pojo.UserInfo;

import java.util.List;

public interface UserInfoMapper {
    UserInfo selectUserByUsername(String username);
    UserInfo selectUserById(Integer uid);

    int insertUser(UserInfoReq userInfoReq);

    int updateUserInfo(UserInfoReq userInfoReq);

    List<UserInfo> selectListByUsername(String username);
}